<template>
  <div class="name-tab">
    <el-form-item
      label="商品名称"
      :prop="NameTabData.goods_Name"
    ></el-form-item>
    <el-form-item
      v-for="(item, i) in titles"
      :key="item"
      :label="title"
      :prop="NameTabData[Names[i]]"
    >
      <el-input></el-input>
    </el-form-item>
  </div>
</template>

<script>
export default {
  name: "nameTab",
  props: {
    titles: {
      type: Array,
      default() {
        return [];
      }
    },
    NameTabData: {
      type: Array,
      default() {
        return [];
      }
    },
    Names: Array
  }
};
</script>

<style lang="scss" scoped></style>
